package me.huangxiang.design_pattern.command;

public class Stereo {
    private int vol;
    public void on(){
        System.out.println("Stereo on.");
    }

    public void insertCD(){
        System.out.println("Stereo insert CD.");
    }

    public void setVolume(int vol){
        this.vol = vol;
    }

    public void popCD(){
        System.out.println("Stereo pop CD.");
    }

    public void off(){
        System.out.println("Stereo off.");
    }
}
